import IMOne2OneCommentLinker from '../im/IMOne2OneCommentLinker';
import HeartSecretRequestChatOneAction from '../../actions/heart/HeartSecretRequestChatOneAction';
import HeartSecretSendChatAction from '../../actions/heart/HeartSecretSendChatAction';

//秘密留言链接
export default class HeartSecretChatLinker extends IMOne2OneCommentLinker {
  constructor(props) {
    super(props);
  }

  _dealSendMessage(message) {
    new HeartSecretSendChatAction().call(this, {target_id:this._talkerData.msguser_id,
      content:message, type:2})
  }

  _sendAction(page) {
    new HeartSecretRequestChatOneAction().call(this, {page:page,
      type:2,
      target_id:this._talkerData.msguser_id, forceRequest:true});
  }
}
